class UrlTracksController < ApplicationController

  def show
    tweet = Statistics::Tweet.find(params[:id])
    if params[:flowy]
      if tweet.clicks[params[:flowy]]
        tweet.quill_clicked(params[:flowy])
        render_json :success
      else
        render_json :error
      end
    else
      redirect_to tweet.clicked and return
    end
  end

end